---
title: ResourceGroups.Add Method (Project)
ms.prod: project-server
api_name:
- Project.ResourceGroups.Add
ms.assetid: cf29b43d-9746-ed87-8717-6f46fdd2319b
ms.date: 06/08/2017
---


# ResourceGroups.Add Method (Project)

Adds a  **Group** object to a **ResourceGroups** collection.


## Syntax

 _expression_. **Add**( ** _Name_**, ** _FieldName_** )

 _expression_ A variable that represents a **ResourceGroups** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _Name_|Required|**String**|The name of a group definition.|
| _FieldName_|Required|**String**|The name of the first field to group by.|

### Return Value

 **Group**


